package org.example.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.example.domain.Dept;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class DeptVo {
    /**
     *
     */
    private Integer id;

    /**
     *
     */
    private Integer parentId;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 状态0：正常1：停用
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private List<DeptVo> children;

}
